<?php
namespace App\Services\LifeCycle;
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2023/12/7
 * Time: 9:19
 */
class IndexService
{
    public static function index($package_type = PACKAGE_TYPE_SALE)
    {
        if ($package_type == PACKAGE_TYPE_SALE) {
            return [
                [
                    'name' => '套餐类别',
                    'width' => 100,
                    'class' => 'tab-ones',
                    'children' => [
                        [
                            'name' => '套餐类型',
                            'width' => 100,
                            'class' => 'tab-ones',
                            'children' => [
                                [
                                    'name' => '套餐内容',
                                    'class' => 'tab-ones tab-hr',
                                    'children' => []
                                ]
                            ]
                        ]
                    ]
                ],
                [
                    'name' => '用车无忧',
                    'width' => 100,
                    'class' => 'tab-one',
                    'children' => [
                        [
                            'name' => '核心服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '动力总成终身延保',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ],
                        [
                            'name' => '保障服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '1000元商业险',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '360航空软包',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '轮胎服务保障（1年）',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '上门取送车',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '50公里内免费救援',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '车辆上牌服务',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '车辆抵押、解押',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '首次临牌',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ],
                            ]
                        ],
                        [
                            'name' => '品牌服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '根据品牌特性提供服务',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ]
                    ]
                ],
                [
                    'name' => '终身保养',
                    'width' => 100,
                    'class' => 'tab-one',
                    'children' => [
                        [
                            'name' => '核心服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '终身保养',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ],
                        [
                            'name' => '保障服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '根据品牌特性提供服务',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ]
                    ]
                ],
                [
                    'name' => '增值服务',
                    'width' => 100,
                    'class' => 'tab-one',
                    'children' => [
                        [
                            'name' => '赠送服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '全车基础太阳膜 1次',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '全车封釉 1次',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '车内室内杀菌 1次',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ],
                            ]
                        ]
                    ]
                ]
            ];
        } else {
            return [
                [
                    'name' => '套餐类别',
                    'width' => 100,
                    'class' => 'tab-ones',
                    'children' => [
                        [
                            'name' => '套餐类型',
                            'width' => 100,
                            'class' => 'tab-ones',
                            'children' => [
                                [
                                    'name' => '套餐内容',
                                    'class' => 'tab-ones tab-hr',
                                    'children' => []
                                ]
                            ]
                        ]
                    ]
                ],
                [
                    'name' => '用车无忧',
                    'width' => 100,
                    'class' => 'tab-one',
                    'children' => [
                        [
                            'name' => '核心服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '动力总成终身延保',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ],
                        [
                            'name' => '保障服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '1000元商业险（500元续保代金券*2）',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '上门取送车',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '50公里内免费救援',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '车辆充氮气',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '四轮定位',
                                    'class' => 'tab-three',
                                    'children' => []
                                ],
                                [
                                    'name' => '天窗清理',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ]
                    ]
                ],
                [
                    'name' => '终身保养',
                    'width' => 100,
                    'class' => 'tab-one',
                    'children' => [
                        [
                            'name' => '核心服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '终身保养',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ],
                        [
                            'name' => '保障服务',
                            'width' => 100,
                            'class' => 'tab-two',
                            'children' => [
                                [
                                    'name' => '根据品牌特性提供服务',
                                    'class' => 'tab-three tab-hr',
                                    'children' => []
                                ]
                            ]
                        ]
                    ]
                ]
            ];
        }
    }

    public static function indexHelp($package_type = PACKAGE_TYPE_SALE)
    {
        if ($package_type == PACKAGE_TYPE_SALE) {
            return [
                '1、动力总成：是指汽车发动机及变速箱。',
                '2、终身保养：以本车维修手册为准，使用普通机油、原厂机油芯，含工时费，用户需要机油升级时，仅须补足机油差价。',
                '3、为乙方提供免费上门取送车、免费救援项目不限次数。',
                '4、为乙方提供1年内轮胎、轮毂、轮毂罩单独损坏赔偿。',
                '5、上述套餐中未列出的服务内容，用户自费处理。'
            ];
        } else {
            return [
                '1、动力总成：是指汽车发动机及变速箱。',
                '2、终身保养标准：按照品牌厂家维修手册为准，保养包含普通机油、原厂机油滤芯及每次保养的工时费，若乙方进行机油升级，仅须补足机油差价。',
                '3、上述表格中未列出的服务内容，需客户自费处理。',
                '4、服务期内，为乙方提供免费上门取送车、免费救援项目且不限次数。'
            ];
        }
    }
}